const CommonMethods = {
    methods: {
        /**
         * @param page: product,recruit,member
         */
        normalUserModalNotice(page = '') {
            uni.showModal({
                title: '提示',
                content: '您还没有开通VIP省钱卡哟~~',
                cancelText: '我知道了',
                confirmText: '立即开通',
                confirmColor: '#F6CC4F',
                success: async (res) => {
                    if (res.confirm && page !== 'member') {
                        uni.redirectTo({url: `/packs/one/pages/user/member?index=0`})
                    }
                }
            })
        }
    }
}

export default CommonMethods
